package org.study.springboot.learning.reflect;

import java.io.Serializable;
import java.util.List;

/**
 * <p>Title: Reflection <p>
 * <p>Description: TODO<p>
 *
 * @Author ZhangSY
 * @Date 2021/6/20 9:51
 * @Version v1.0
 **/
public class Reflection implements Cloneable, Serializable {
    private String     str;
    private double     d;
    public     boolean b;
    public static short s;

    public Reflection()
    {

    }

    public Reflection(String str)
    {
        this.str = str;
    }

    public Reflection(String str, double d, boolean b)
    {
        this.str = str;
        this.d = d;
        this.b = b;
    }

    private void privateMethod()
    {

    }

    public String publicMethod()
    {
        privateMethod();
        return null;
    }

    public String publicMethod(int i)
    {
        return null;
    }

    public String publicMethod(int i, double d, List<String> l)
    {
        return "Reflection.publicMethod(int i, double d), i = " + i + ", d = " + d;
    }

    public static int returnOne()
    {
        return 1;
    }

    public String toString()
    {
        return "str = " + str + ", d = " + d + ", b = " + b;
    }
}
